unit tests for tree set