SONAR-2746 Fix test