Added test case for Thread equality