add multi-thread testcase.
add more bit hacks.