Add tests to sessions helper
- 100% test coverage