tests: make sure tests don't hang
tests: sort cached settings before save
check_tcp: only test ipv6 if ping6 works
check_snmp: add timeout handler befor running snmpget