Modified for loop tests