Add tests for session manager.