Fix broken tests.

The tests tried using an invalid port and failed. There can be no more than 65535 ports available.