added thread_test.cpp