expanding unit tests for socket stream buffer