Check input parameters for packet api

Includes test case updates