iptables-restore tests and fixes