Wrote unit tests for packing and comms