fix extract closure from for enumerator unit test