[TEST] Rename 'thread' to 'yarn' in code for consistency