Make TestFrameworkTest more robust and making sure each test always stop...

...s everything it started.