Add RedirectStrategyTest and change $authenticationService->getIdentity() by $authenticationService->hasIdentity()
Code fix