Added some tests for getPortName