Added test for get_indices.