testing map-reduce programs