add a template for test results and a listener that will run them when
the test report template is rendered