General fixes and better coverage for AclCache.