Add test of MatrixConstraints