Finally. After login username and userid are saved to session. Userid is
used to save tests.