SERVER-6972 Fix test compilation