Add integration tests for batch delivery.