SONAR-2501 Fix unit test because of new Tests API injection