test for deleting a file