fix unit tests for phantomjs runner