improve ThreadTest error check ability