added a test for named loops