test unit with PhantomJS