add a append test for string.cpp