more unit test fixes, fixed problem with RingInputStream when the high
bit is set in a byte