Initial privileges count

- Added additional test for initial privileges in the database, because
sometimes old privileges are not deleted, resulting in incorrect role
privilege trees.