Ported thread tests without the stress tests.