Added tests for KV service