Add test for totals