dhcp: adopted test run to new socket_wait code