unit test update to add the loop as an example