Redmine#1900: test basic template and trailing newline

see https://cfengine.com/dev/issues/1900

test is in staging