Finish writing tests for appendStringAtCursor