Added test framework for Thread class