Add ICMP constructor and tests.