updated tests to use ephemeral ports