Added test for the CDSN encoding.