Use the first part of uuid in case of empty server name
Add unit tests for cloudinit.cs_utils