more tests. fixed logic for mapreduce and listkeys