add test for cycleTriedTimes and fix cycleTriedTimes inc error #60