Add packet fuzzing to the test cases. Fix various crashes exposed by
this.