fn test_thread_main(args: TestThreadArgs)
Runs a single test, within the dedicated thread spawned by the caller.