NEXUS-6731: Fix and UT for MD maintenance

To ensure that MD maintenance happens without classifier passed over