Added more tests for processing bad packets.