Tests for ControllerBackend
AppLogout tests
App Shutdown tests
More tests and some corrections