Improving test for previewing csv attachments