Integration testing for login-logout.
Changed way of storing user id in session.