ticket:3 tests fixed + middleware
ticket:3 added 404 page