make sure KVMessage raise proper exception