Add tests for "is_cached"