Added test framework for ThreadController class