fix test in phantomJs