adding unit test for for-each