TS: extracted randomString to testutils.