[tsan] Fix output tests.