Unit tests are more difficult for me than functional tests, and I am trying to write a unit test that relates to my middleware, but what goes wrong. Can someone help me fix this