Add test case for magn-5096
Merge pull request #3315 from ke-yu/add_testcase

Add test case for magn-5096