Added port number parameter unit testing