Add tests for setupHosts.js