Add a real unit test for the cache.