Added MDHS-aff test function