Test authentication.