add tests for internal string functions