Add tests and code for creating a new user session