Fix issues with test and use PhantomJS browser