Fix instability in tests

DHCP port IP gets sometimes first IP from the allocation pool and sometimes second IP. Because this race condition we'll check if real IP is one of first two IPs in alloc. range.