add test for round-trip encoding/decoding
Merge pull request #8 from yzernik/ping_roundtrip

add test for round-trip encoding/decoding