test for/foreach