Redmine#4076: add acceptance test for countlinesmatching()