splitting out the addHost from setHost
updating validate test