[Reviewer: Andy] Use DI and mocking so we have code coverage of the SessionManager