Moving cycle tests to unit tests.