Fixed bug in test_archive_election