Update test_thread.cpp