(#100) - Use Blobs for attachments: add Test

Add a test saving an attachment together with an invalid doc.
(#100) - Use Blobs: Fix invalid docs

Fix error when trying to save invalid docs.