check_dhcp test: skip subtests if no variable is set