Does this test really give you 4 or 5 notifications?
It should give you 0.
Flipping a boolean 100 times (an even number) will leave it in same state it started in, and as this is all happening in one frame, there should be nothing to replicate (nothing actually changed, frame to frame).