lister.pattern: Make batch record parametric and test it
This adds a test around the batch recording behavior to ensure it's not dropped by mistake.
This is a follow up of the previous mr [1]
[1] !492 (merged)
Refs. swh/meta#5001 (closed)
Edited by Antoine R. Dumont