Maybe this is a silly question, but why not just create/delete the appropriate file in the test setup, probably in a temporary directory, then check to make sure it's been deleted? Obviously it's a little more complicated than that, but it doesn't seem a lot more complicated...