unit test on map