Fixed bug: null packet was incorrectly written

expanded packet capture to produce test cases