fix for phantomjs test