test and fix mapkv