Refactor LoadAllSeries so that we could test error conditions

Also write a couple tests for CreateVotingPool, which had no explicit tests
whatsoever.
Sure, I don't think it adds much but I can do that. Have I complained
about the lack of assertion methods (in the standard testing library)
today already, btw? ;)