Helper function to create documents from strings
Extract namespaces when passed complete documents instead of nodes
Test whether the default NS is treated normally