Fix isolate and thread tests.