test.client: get user via contrib.auth.get_user

Rely on contrib.auth.get_user just like AuthenticationMiddleware
cf #22771