test written for the poll class model, all tests passing