Improving namespace UT.

The UT was not testing for proper use of the `namespace`
keyword outside of namespace definitions.