Perform tests on key, not on record.

Closes #12.