PhantomJsTest improvements