Add regression test case for magn4838
Merge pull request #2721 from ke-yu/regress4838

Add regression test case for magn4838