Refactor store tests.