Fix "exit from normal thread" test