Use ephemeral port i DefaultServerFactoryTest

Should make the tests more portable by not relying on an arbitrary port
being free.