Unit testing sendBatch