complete tests for attachments and images