Better test coverage for pop_index()