Fixed 'unless' test when we are using caching