Client Shared Buffer fixes

OutputStream grows silently underneath and the buffer changes goes
undetected. Causing the requests to timeout. InputBuffer growth is
also not tracked.

Adding the test to validate the values returned.