add unit test for thread & mutex