SONAR-5023 Fix unit test