finished tests and cycle detection