test authenticationerror