Normalize file content in tests