Rambling, don't take this as a obligation to change this in this PR: This file is mostly a dupe of the one for leveldb. I'm just worried that people doing future modifications will forget to keep changes in both files in sync (+more maintenance). The golden solution would be to extract even more of this to a common place and then only pass in one or the other persistence into a common set of tests.