Added a test to cover caching