Corrected some things in the thread test