testing.py: Add a new `check_cache_key_stability` helper

This allows plugin authors to implement cache keys tests
more easily
6 files changed