Description
When splitting batches the first batch ends up being 999 elements instead of a 1000. Hence a 3000 batch would be split into
999, 1000, 1000, 1.
The reason is that in the addToOperationsList functionthe batch size is incremented and checked before actually adding the last element to the batch.