Bates up for challenge after winning State's Attorney primary