Issue #340 - Simplify UploadProgressBar to duplicate the logic from ProgressBar as less as possible

Improve the test case for UpdatableProgressBar