#3 Add test of error case in Thread class