[Cache] Refactoring testFalseOnFailedFetch into CacheTest

This changeset makes sure that all supported caches return
false and not null when a key is not found. This ensures
compatibility with the ORM layer.