Adding unit test for new getCardVotes function