Added test for string_from_file.
Reimplemented bbuf and added test cases.
fixed reporting of reserved size.