This is because in the test we are calling both join and detach. We should only call join.
Created attachment 338415 [details] Patch
Committed r230889: <https://trac.webkit.org/changeset/230889>
<rdar://problem/39618643>