Fixed phantomjs tests with Grunt