Fixes #265 -- Add unittests for string_getline and string_append

These unit tests deal with boundary conditions where the appended
string length should equal the allocated length of the string buffer.

Currently the getline test is not passing, I will correct this soon.
Merge pull request #265 from caitp/issue-265

Unit tests for String append