Completed unit tests for thread resource.