More readable sessionmanager.
Example for sessionmanager in test