Added progress.bar argument to the test functions