added has_key and has_value method with tests