Add test for deleting file