Try using a totally fake path in your test like `q:\something-fake\foo.txt`, where `Q` drive is unlikely to exist on most machines.