ticket:3 add test
ticket:3 add middleware, fix test
Merge branch 't3_middleware'