Added a looping test snippet