Fix test. We should expose the stale indexes by names and not by ids