Added a test for cache size correctnes