Extracted matcher for validating errors

This displays the actual validation errors when a test fails, instead of
just verifying a true/false value