fixed some broken tests, and added more tests for the self links in the ballot line result page.