Testing calculation of mass inverse matrix