updates to run tests with phantomjs