Fix test of dependency-less middleware linearization