SONAR-4776 Fix unit test