Avoid testing caching when caching is not available.