Added unit test case "Defect_MAGN_4024" to verify the defect fix