Added key mapping test for map, imap