added has-key
added test for has-key