correcting an issue with inheritance in permissions
also adds an inheritance test for the PermissionsProviders