Test the authentication feature