Add testcase for AllReducer with iterations