or add && removeFile to the test on line 2803