Redmine#3184: acceptance test for editing immutable files

See https://cfengine.com/dev/issues/3184

Includes some sorely needed acceptance test framework improvements, which are immediately used.