Test for use of deprecated "has_key".