test extends thread