support for confirmCacheBeforeEnd, TTL at provider level via isTTLManaged, and some refactoring of unit tests to accomodate high-latency providers