extract checkEndCallURL for easier mocking