Add test dyn and dyf file
Add unit test for defect magn-4837
Merge pull request #2914 from ke-yu/add_unittest

Add unit test for magn-4837