added test for getAllPermissions()