Fixed tests to use phantomjs