Added test case for defect MAGN-781

There was a crash while opening this dfy file. This test case will take care of the regression in future.