Added kv function to retrieve a key/value pair from an object
Added kv tests