inverse matrix tested