Refactored test-progress-bar