Add test coverage for util.parse_host