Added unit-tests for effective rights/resource type permissions (intents).