Fix setting endpoint
Add callback URL test