Add tests for SessionManager