Fix broken tests for creating polls and results.

Fixes #11.