Add test that makes sure cache size can be changed on the fly.