Allow tests to pass in PhantomJS