Add failing test for reduce closure as part of a loop.