Fix AuthenticationManager test