adding unit test for DelegateElectionCount resource