Test cases cover the nested for loop