tests now passing in PhantomJS