fixed Scenario: should extract for statements with nested for loops