Nested foreach test-case.