added tests for totals