Fix sessionmanager test