[4.2] Add Tests For URL::previous().

Followup to #6293.