Test deleting a file