Test suite: Improve detection of IPv6 support