Adding new test for caching functionality