test of setting and getting String with mixed characters

Use a random seed, that can be outputted as well when a unit test fails. Otherwise it is impossible to reproduce errors.