Fix PhantomJS test if version >= 1.9.7