improve packet test case