getThreadWithNum for TCPTests

helps with output of __str__