SONAR-4923 Fix unit test