test determinant method