Add tests for `calculate_max_columns()`.