using PhantomJS as test browser