Fix tabulate tests

1. Compute cumulative table if required.
2. Compute max cell width for each column.
3. Update test system.