more unit test for thread