reduced test code for Discovery packet port bug