adjust to namespace awareness

Changes the way injected strings are created so that namespace aware
parsing is no longer needed. Adds tests for installing plugins that
involves namespaces