Add: Acceptance test for matching unresolved variable

Ref: https://dev.cfengine.com/issues/6519
How about a variant that skips the leading ^ and trailing $ ?
i.e. test whether regcmp() is in fact implicitly anchoring whatever we give it.