Fix phantomjs test