Added test for persisted local data.

Steps to test:

Run tests, they should all past.

Note how localStorage is being cleared, not reset.