Added test cases for reducing/folding of maps