tests and code for adding a poll