Added new name value pair add function in the object class and changed the test file.