Testing the authentication functionality using a JWT token