unit test for votes