Add tests for Election+API getOrCreate method