Add tests for sessions module.