Fix CacheAuthorizationTest
Move cache-availability from metrics to cache and make it writable