adding more bitbuffer tests
bugfix in null read/write with ringbuffer stream
allow bitbuffer to operate over streams