added tests for matrices.c