Adding tests for map/reduce.