thread-related test from haarg