test memoize on curry