fix for connection port number test