This seems an odd way to test the existence of the `cache` property. I'd have written something like this:

```javascript
var upper = _.memoize(function(s){ return s.toUpperCase(); });
equal(upper('foo'), 'FOO');
equal(upper('bar'), 'BAR');
deepEqual(upper.cache, {foo: 'FOO', bar: 'BAR'});
```