I found this bug during my work on issue
When you 'set' an element to a position that contains this element, it is removed from the internal set. This leads to the situation that
- invocing get() returns the element
- invocing contains() returns false.
Extending the existing test method for set: