adding unit test for mapping feature