Made packet size a parameter value
Minor test code removed