SERVER-8217 Write test for id logging