Added add thread method to test utils class.