testing get_matrix()