Added NamespaceDeclarations helper and unit tests

Implements enhancement request on issue #69