Added new assert statements to test my understanding of detached threads