Add new PHPUnit test for AbstractThread