Add tests for caching module