Test for ser/des of MolDSException