Fix tests on Windows, where Path objects were changing to strings myster...

...iously...