Fix index registration test