added test to matrix2