Add test for extracting site from URL path