Added missing test cases.
Bug fix for new-style for loops.