Redmine#2778: acceptance test for select_line_matching bogus warnings

Replaces #1218

See https://cfengine.com/dev/issues/2778

The `*sub` subtests were actually standalone tests, so I renamed them as such.