Cleanup phantomjs support in test.js.