Unit testing for PhantomJS.