Adding a fail over to a temporary cache if it's undefined, for tests