#261 add tests for batches