Added a loops test