Tweaking thread_id test