Added unitTest for EncodeDecode with rondom generated dataProvider. Fixed exceptions classes