Fix failing index unit test