[deps] Remove ded devDep and add new
[fix] Set the correct leader and term
[test] Added leader election test