Added a test for namespace detection