Fixed test to work on Firefox/PhantomJS