Batch consumer API, tests