Remove unused host_name

* As tests failed. I also fixed them.