use PhantomJS to run test