Fix unit tests to use cross-platform paths

Otherwise these tests fail on Windows.