tests with attachments