core: Minor cleanup of ValidationUtilsTest

Remove duplication in tests code when testing for pattern match of
multiple strings.

Change-Id: I3416939844516e3d39538221970c9caa5ca73fd7
Signed-off-by: Martin Betak <mbetak@redhat.com>