Added test - to check content host names are unique

please review it 
thanks
From 558-568 should be unindented otherwise it will be only run if the factory raises an exception