Added tests for GetTotals