Add coverage for previous keys test

I finally got around to writing a test for the constant keys bug I patched yesterday