a working version for the cyclictest