Test when creating new thread.