SONAR-3755 Fix unit test