RandomString unit test.