added test for map