Technically the case of avalanche-triggered invalidation is already tested but it makes sense to re-test that behavior here to ensure avalanche invalidation is treated similarly as items being made invalid for other reasons.
This patch also improves the test coverage to actually check that the item is no longer being polled, not just that unexpected responses are handled correctly.
Depends on D17589