Redmine#4076: improve acceptance test for countlinesmatching()

see https://cfengine.com/dev/issues/4076

Adds an extra "exact match" test that fails due to an extra character at the end of the line.