Added loop tests