Fix broken attachments controller test.