Fix resumeThread test code