Fix export of matrices for Agros tests to pass.