Redmine#3273: acceptance test for lsdir()

See https://cfengine.com/dev/issues/3273

There was no acceptance test for `lsdir()` unfortunately.