add test case for the defect MAGN4046

@riteshchandawar  please review it