Fix some Swift tests to make progress toward getting Windows/Swift testing enabled in CI.
Issue: #25573 Topic-rename: swift-windows