added test for starting of a thread