Normalize output in tests