Refactored audio unit tests.
Added a lot more tests to run_tests.js phantomjs script.
Updated resources unit test.