cycles and unit tests