test: clean up binary packet parsing