writing tests for collection event attribute batchOp