ProgressBar implementation and test