Add tests for URL canonicalization and canonicalize .git extensions