Streamlined test case from #782
FIXED pushState/replaceState should change history immediately #781