Attachment unit tests added