Added a test for redis caching