changes in matrix.add tests