key fidelity test. match code formatting better.

I believe I handled the issues discussed in #16. I didn't find a way to make this test fail and pass in the same way using the `populate` helper. As I only need one value to show this bug and it only happens when you close and re-open the database, `populate` didn't make the test any simpler. I think the important thing is this test shows the bug I found being solved, right?