Add a new tests for rendering to verify saves.

Refactor the tests so we can reuse the DictKeyValueStore.