updated phantomjs based tests