Bug correction in topoPortMapping tests