Add a test case for validating packets, and validate packets.