Fix wrong except on models
Add test for middleware