Add tests for ability to internalize external namespaces