Refactor LoadAllSeries so that we could test error conditions

Also write a couple tests for CreateVotingPool, which had no explicit tests
whatsoever.