Added a test case to ensure that the ``TestHandler`` is added correctly.