Don't create new app in offline event generator

The scheduler already creates one!
Use ExitStack for the test context stack
Don't create multiple Flask apps
Clear RHMap cache in Collaboration_Feature