modifed test in PortListenerFacts to catch expected SocketException