Fixed test case for phantomjs.