Use new CodecDecodeError to and add additional tests