add test for map with struct