Added a test for poll creation. Fixed the default values in createPoll function because
test failed from the beginning with them. ;D

Signed-off-by: Norv <a.w.norv@gmail.com>
Add tests for poll subs functions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Disable testing by default (we're using db). Add documentation.

Signed-off-by: Norv <a.w.norv@gmail.com>
Merge pull request #566 from norv/unittest

Small additions for testing