Call Game::stop() even if the main loop is not run.
Allow to advance the main loop step by step.
Tests: move boilerplate code to TestEnvironment.
Simplify test code.