test creating a thread