test for map and reduce without fail