**Expected**: Functions with async-await syntax should be retrieved as usual **Current**: Such functions are ignored in `toFunction` method