Add a couple of unit tests, fix packet size