Use a scoped store for testing.
Eliminate a noisy error: no localStore available at login.
Minor changes.
Add more tests.