Added test coverage to ensure all elements can be deleted when iterating over sorted sets