Even though the unit test might work but from a dev's point of view it is not easy to understand what is really expected.
I'd rather have the data provider have two values, one is the "before" and one the "after" so it is visually clear what happens, clearer than the logic that build $expectedURL.

(minor issue)