add tests for ajax voting