fixed phantomjs tests.