loop tests