Only run cache tests if the cache is available