Merge pull request #418 from trevorwhealy/undefined_src_in_test_env

fix(test): prevent cannot find src of undefined err