tests: Always check main thread name instead of thread position in enumerate()