test_command: update to match new parse_host API