Add tests for index_matrix
and index_vector
#89
Merged
index_matrix
and index_vector
#89