add tests for display of sum on index page