test AuthenticationManager