Fixed unit tests failing on Windows

There were several unit tests introduced in SPR-10608 (commit: 2313c9a007fe4c48f11b08806b852ced7fbff13d). Some of these tests fail on Windows because they rely on asserting file names containing forward slashes, which is not platform independent. These failures have now been resolved.

Issues: SPR-10770, SPR-10608