correct typo and add unit tests

correct typo in KVServer
add unit tests
add special check in KVMessage: we need to make sure if the change is
required