complete test for forStatement