Correct error message in thread test