More tests for ProgressBar.
Fixed max_width bug.