Fixed null pointer issues with ThreadListTest.
Resolved ThreadTest issues.