changed dependency injection to SessionManager, updated tests.