use PhantomJS detection in the unit test to fix the grunt testing