Has optimized namespace getter, add test spec