SONAR-2501 Improve injection of Tests API