[tree] Repair level test for MongoDB