Fixing test code
mend
Fixed bug to allow no callback on getPacket