Provide some tests for the logs-matching fn

If ever anyone wants to tinker with this in the future, and given that
it's used across most of the PuppetDB tests, these tests should come
in handy for whomever wants to refactor this in the future.