Provider Instances==0 would never fire
Merge pull request #526 from psav/fix_bug_in_test_terminate

Provider Instances==0 would never fire