tests: library: remove repetition in cycle_* tests
kpv: rename rudder reversal to rudder cycles.
library: comment and simplify cycle_counter()
library: added new cycle_select function.
kpv: rudder reversal with correct implementation.