XCOMMONS-543: Add support for Cryptographic Message Syntax (CMS) signatures

Improved tests