add test_middleware
add middleware
Merge branch 't3_middleware'