Loops: test nested loops