Fix phantomjs test runner