Corrected mepreduce functions and updated testdata.