Task: Proof that the cursor of attendance devices is safe
Description
Tests now prove that a sync which fails in the middle of a batch leaves neither events nor a cursor behind and that the next sync stores every record once, and that the counter of a terminal that wraps around keeps all records and moves the roll-over count.
Impact
No visible change. A failing sync can never lose the records of its batch.