Add Unit-test for kv