Added a loop test