integration test for vote