Fix path separator issues in tests.
Merge pull request #3045 from marchaefner/master

Fix path separator issues in tests.