Added test for custom port number