Fixed test where supplying an invalid port (with a number outside the range [0-65535] throws a uri_syntax_error.