A test that proves a report writes nothing counted stored rows only after the report had run twice. A write to a fixed key inserts once and then only updates, so the count never moves and the test stays green.
Snapshot before the first call. A baseline taken after the code ran already holds its writes.
Compare row contents, not counts. An update keeps the count and changes the row.
Compare row contents, not counts. An update keeps the count and changes the row.