TYRUS-274 bug fix
TYRUS-274: BufferedInputStream.read() returned byte data with sign, causing '-1' to be interpreted as end of stream.

- test adjustments