Add test and fix for not excluding nested URL namespaces