Parsing for loops and adding a test