added tests for votecounter