Thread ID related tests.