Batching| Add test for auto flushing of the buffer