Added new unit test for URL conversion (part of fix for bug#7822).