Use random port for simple server

This is needed because sometimes the port used in a previous test takes
some time to expire. Also it's nice not to have a fixed port in case
another process was already using it.