tests for progress bar refactored in order to make counting of value more stable