Test case for invokable middleware.