adds buffered stream
adds buffered stream tests