Added unit test for forloop.* variables in nested loops.