Adding JUnit Tests for LeaderElectionLib