New torture tests for thread role attributes, plus fixes to pass them.
More torture tests