Modified ThreadTest slightly.