Introduce test for packet unmarshalling.

This breaks out packet unmarshalling into its own module.