test for distributed matrix