The test isn't necessarily finished since the thread could have been interrupted by anybody. Some better signaling and a loop might be in order.