bug fix removeEmptyBallots, add basic unit test.