added resetMaxId for TestMidTerm Scenario