Fixed "expected" and "actual" parameter order in some assertions.
Fixed another rare case where unexpected end-of-stream does not result in an immediate EndOfStreamException