tests and code for poll comments dialog