Support for batching (replaces transactions in the test)