Adds new embedAttachment() method and fixes expected parameters in test