fix testcase for various threading implementation