added tests for inherited permissions