WIP: add test for map/reduce