Pick a random unused port for the test server during unit-testing

Avoids conflicts with other programs and makes it possible to run the
tests in parallel.