Added test cases for ending and pausing a poll.