Add tests for adding messages to multiple batches.