Fix typo
Add unit-tests for StringBuffer