Add tests around URL building.