add test case for poll's index view.