fix: randomize service_urls works as expected, added a unittest