Make the detection tasks idempotent
Fix idempotence test to expect 0 changes