Make the `cli/index` tests reach the threshold

This makes `cli/index`'s tests reach more than 80% coverage. Tests are
still failing.