added a test method for progress bar