getAllAttachments returns an empty array if there are no attachments
a rough test of the data migrations