Fixed the build error in port mapping tests.