add WeakCache.size() method to enable testing