Refactored test cases, fixed reduce error.

	modified:   mapreduce.php
	modified:   mapreducetest.php