tests and redid user token generation