added test for invalid mapping