Unit tests for networking

Doing unit tests for networking. Should prevent stupid bugs between encode/decode.
Well it's more of a "If something is better, please implement it"