added unit tests for ajax vote