Add string type tests

Targets #182 
The number of units may differ from utf8 to the internal representation.