add test_thread.cpp