Add test execution and reporting middleware.