cache: Fix typo bug (plus test)