Add tests for PhantomJS scripts with require