Add a few more checks to attachments test