Test fixture for middleware defined by array