add tests for SAMZA-80. Handle null-prev bug. Add a sanity check that just uses the store for a while, and validates that it works as expected.