Add test for ping checksum and sleep dlen.

- Address @tenderlove feedbacks on the previous pull request.
- Put back %256 in checksum calculation
- change require_relative to require.