Refactor LoadAllSeries so that we could test error conditions

Also write a couple tests for CreateVotingPool, which had no explicit tests
whatsoever.
Indeed, in the first version of the test there were no checks after this
one, so Errorf was fine. I forgot to change it when I added more tests