Add acceptance test for namespaced classes

Ref:https://cfengine.com/dev/issues/4050