Fix typo causing memory stomping in test_memoize