issue #155, added default references & default namespaces
tests for #155
Merge pull request #156 from filipw/issue155

added default references and namespaces