modify test_thread.cpp