update unit test case
fix a bug of SegmentalByteBuffer: if its content changes, we should update the buffer size