Add tests to check that the FOR variable is defined after the loop
Merge pull request #3491 from forty/master

Add tests to check that the FOR variable is defined after the loop