If you do the above, then you can leave this test exactly the same, and just tweak the error message to be "File/Directory doesn't exist"