Test should not crash.
replaceState() should not always count against the global quota. Instead it should literally replace the most recent state object added.