Test deleting file