add tests for snapshotting
test and tweak snapshot functionality
Merge pull request #4148 from dimagi/opm-snapshot

test and tweak snapshot functionality