Address Ben's feedback and added remaining unittests to kv/kv_test.go.