test_mat_size function

Test to make sure that matricies are the right size