add test thread using boost.
add test thread using c++11.