add testcase.h for some of test case and add thread test case