test added for the loop