add a progresscounter in test mode