Fixed test for using createAttachment() with Buffer