Fix phantomjs browser tests.