add test to check indirect invalidation of QueryCache entries