fix check for repeat/cycle

So, the iterable tests were not considering that a HashSet implementation does not repeat its elements. I dont know if its the best way to fix this problem, if you have a better idea i would like to implement it.