tests/pkg: fixed issues from #919
icmp.c: remove empty else clause