Added a test for handling expired cache