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

- test adjustments (glassfish CL issue)