Updated tests using randomString()