removing all hardcoded namespacing in endpoint class, fixing test env