Fixed test failures on Windows.

refs #21092 and 8d7e048a8b428bebe82be735a84570f9250441e6