Bugfix: using validation matchers in templates

The validation matcher repository was not propagated to test contexts of templates.