Add test for parsing a packet
Also check for msg length