Fixes tests for SQL backend

The tests for the SQL backend when both Inherited Roles and
Hierarchical Projects concepts are supported are now fixed.
The next step is to refactorate the implementation on the
backend SQL and to support both concepts on the KVS and LDAP ones.