Add test case to show that we can correctly detect interference

See #84.
Fix bug with ConcurrentModificationException

We were iterating through the set and removing elements from it at the
same time. So we snapshot before iterating.

See #84.