Fix test about unsafeElect