test: nested loop