Add test for the timer and recorder middlewares.