Tests for method mapAccumR() and one more for mapAccumL().