Workaround for tests on PhantomJS.