unit: manage EOF correctly
unit: expand testing of deserialize failures