Add foreach-empty test.