add multi thread test code