update testAttachments with status code fixes