tune up loop detection tests