SONAR-2447 Fix permission template tests