Add unit tests for StringUtils