Fix a bug in bounty.can_vote? and add tests verifying the method's functionality.