map_reduce test working with assert