Added test for empty StringBuffer.
Implemented StringBuffer_from_string and StringBuffer_from_printf.