Lots of packet parsing and unit test updates