Added more tests for ThreadUtils