Fixed tests and sessions user_id storage