Strengthen user notification checks.

Check that the exact number of notifications added/notified matches the
expected notifications, not just that the expected ones are called.

Bug: 381838074
Test: npm run test:unit:ci
Change-Id: I03242f64340a2b3e18f175077e894940973c46f8
5 files changed