Added test for key mapping.