Remove duplicate output in tests.