add a portmapping method in func tests