Fix DMat constructor.  Modify test.