Combine middleware test to 1 test case