Added test for key value pair