Attachment API in and tested