add the test method to test the script's packet generation