Add tests for normalizeUrl, hostFromUrl, resourceFromUrl functions