add acceptance test for #3643

Acceptance test for https://cfengine.com/dev/issues/4070- reworked to use G.testdir and sys.cfengine