Added test for mapAccum