XIN - tweak regex, add testURLs
XIN - handle anonymous namespace