Tests for performance added in matrix.c