Fix the decorators to avoid infinit redirection loops
Add tests for pkgdb/__init__.py mainly to test is_pkgdb_admin