Fix funtional test for user session management