Merge "Consume batches in dispatcher tests"