Added tests for a port number of "0" as it wasnt tested.