Add tests to confirm caching behavior.