Extend const string test

Also test if the overload for arrays of const char handle strings with
embedded null (\0) correctly.