tests if middlewares methods exist as expected