Write and read attachments
Merge pull request #1 from rockybars/write-and-read-attachment

Write and read attachments test