stream: check against <0 for errors.
tests: add some debug text to replica set test.
buffer: adjust min_bytes by current buffer length.