Unit tests for new URL-related util functions