Basic thread tests.