Fixed test for `createAttachment()`.