Add test for each loop with maps