Tested handling of duplicate indexes