Add acceptance test for peers function

Ref: Redmine:4848 (https://cfengine.com/dev/issues/4848)