fix incorrect code example for indexes
improve fired alerts test consistency