test thread.cc