Some though machinery to properly test the cache.