fix check for repeat/cycle
Merge pull request #251 from DiegoCoronel/fix_hashset_test

fix check for repeat/cycle