More Loop tests
Improve and fix Loop tests
Merge pull request #518 from owdqa/feature/loop_tests

More Loop tests