Fix path joining in unit tests