testing for various types of keys in dictionary insertion