Unit tests for networking

Doing unit tests for networking. Should prevent stupid bugs between encode/decode.