add test for cache_with_expiry