tests for cache invalidation