test session for user and login logic