add acceptance test for #3643
use sys.cfengine and G.testdir