Add incomplete middleware test