1) fixed tests: view not found -> 404 http code
2) few code cleaning