Add more tests for mismatched type for keys