add test for validity of packet pointer