Test attachments throw exception