fix(tests): sonar function testing according to last modifications See merge request to-be-continuous/dotnet!26