Refactored BatchReduceTest