make CAException cleaner; move S/MIME signing to separate method and add it to unit tests (now also add new file)