[server][testSessionManager] Add tests.