Fixup 247253d cache.put should be mocked

Fixup 247253d because of ef6a613