Fixing pushstate test in phantomjs