enable to handling port name in matche? methods, and add tests