fixed KeyValue test