Added test - to check content host names are unique

please review it 
thanks
@sthirugn  yes CLIFactoryError checks whether expected output is correct
so what I did added the exception when content host name is created for first time

and for the second time since same name self.fail("names must be unique')
have modified the code
I hope that makes sense
thanks