yamlsource test needs to check for leading spaces

As yamlsource writes the fact names with leading spaces the regex needs to take those in consideration.
Without this change the test always passes even if the fact source filter would not remove the needed facts.