Clear ServiceContainer after every test.

Stopped using ServiceContainer scopes for tests and instead just
clearing the whole container after every test. Previous approach was
causing problems with lingering subscribers in MessageBus.
Fix model commit to database (again).

Apparenlty the previous attemt to fix the model commit (ca35e7d) also
didn't work. Added tests and fixed it for good this time around.