wrote test for the view of past poll