Fix the packet writing test

Signed-off-by: David Scott <dave.scott@citrix.com>