SERVER-8217 Write test for id logging

Make tests allocate port dynamically