corrects bug during changeHost/removeHosts
Merge pull request #38 from p-antoine/tests

Add unit testing