Add a test for not deleting files.

WIP - this test doesn't work yet
Make sure files are deleted when removing attachments
Use .reload to get the latest data from the DB