added test code for continue/breaks in for loop