Fixed problem reported by Robert Bolhouse when a namespace is not provided. Added test to validate.