For map reduce test codes