added loops test to see that the parent loop is reset