added test to show loop contorl