Fix index tests setup.