fixed tests on PhantomJS