adding key data structure testing code.